import { Application } from 'egg';
import news from "./router/news";
import upload from "./router/upload";
import githubRouter from "./router/githubRouter";
import user from "./router/user";
export default (app: Application) => {
  // const { router } = app;

  // router.redirect("/", "/index.html");
  
  news(app);
  upload(app)
  githubRouter(app);
  user(app)

  // router.get("zp/user/:id/:name", controller.home.info);
};
